/************************** 
* Provera za formove
***************************/

function checkLogin() {					
	if( document.forms['formLogIn'].email.value == "" 
	|| document.forms['formLogIn'].password.value =="" ){
		alert("Niste uneli e-mail adreasu ili lozinku.");
		return false;
	}else{
		return true;
	}	
}	

function checkRegistration(){
	if( document.forms['formRegister'].email.value == "" 
		|| document.forms['formRegister'].passwd1.value ==""
		|| document.forms['formRegister'].passwd2.value ==""
		|| document.forms['formRegister'].firstName.value ==""
		|| document.forms['formRegister'].lastName.value ==""
		|| document.forms['formRegister'].telNo.value ==""){
			alert("Niste popunili sva polja!\n Molimo vas popunite da bi ste registrovali.");
			return false;
		}else{
			return true;
		}	
}


function checkAppointment(){
	if( document.forms['formAddAppointment'].location.value == "" 
		|| document.forms['formAddAppointment'].date.value ==""
		|| document.forms['formAddAppointment'].from.value ==""
		|| document.forms['formAddAppointment'].to.value ==""){
			alert("Niste popunili sva polja!");
			return false;
		}else{
			return true;
		}	
 }
